#include "document.h"
#include <iostream>
using namespace std;
void document::setText(const QString &text){
    if (text == _text)
        return;
    _text = text;
    emit textChanged(_text);
}
